using StackCalc.Instructions;

namespace StackCalc.Parsing.ParsingUnits
{
	public class PrintTextParser : BaseParsingUnit<PrintText>
	{
		protected override bool CanParseImplementation(string input)
		{
			return input[0] == '"';
		}

		protected override PrintText ParseImplementation(string input)
		{
			return new PrintText();
		}

		protected override string TrunkateImplementation(string input)
		{
			return input.Remove(0, 1);
		}
	}
}